package com.candy.reflection;

/**
 * @author donglin
 * @Title:
 * @类名: Stuenbt
 * @date 2020/6/5
 */
public class Student {



        private int stuId;
        private String stuName;
        private boolean stuSex;

        public Student() {
        }

        public Student(int stuId, String stuName, boolean stuSex) {
            this.stuId = stuId;
            this.stuName = stuName;
            this.stuSex = stuSex;
        }

        public void sayHi(){
            System.out.println("你好");
        }
        public void sayHi(String stuName){
            this.stuName=stuName;
            System.out.println("你好"+this.stuName);
        }

        public int sayNum(){
            System.out.println("返回值");
            return 1;
        }

        public int getStuId() {
            return stuId;
        }

        public void setStuId(int stuId) {
            this.stuId = stuId;
        }

        public String getStuName() {
            return stuName;
        }

        public void setStuName(String stuName) {
            this.stuName = stuName;
        }

        public boolean isStuSex() {
            return stuSex;
        }

        public void setStuSex(boolean stuSex) {
            this.stuSex = stuSex;
        }

        @Override
        public String toString() {
            return "Student{" +
                    "stuId=" + stuId +
                    ", stuName='" + stuName + '\'' +
                    ", stuSex=" + stuSex +
                    '}';
        }
    }




